#include "BuilderPhoto.h"


/** BUILDER QUE MONTA E INTEGRA INTERFACE COM USUARIO, CONTROLADORAS E PERSISTENCIA
*/
BuilderPhoto::BuilderPhoto() : Builder(){
    //ctor
}

Controller * BuilderPhoto::criar() const{
    InterfacePhoto * interface = new InterfacePhoto("Fotos","\t0-sair\n\t1-cadastrar\n\t2-excluir\n\t3-pesquisar\n\t4-adicionar foto a album");
    cmd_photo * cmd = new cmd_photo();
    Controller * cntr = new ControllerPhoto(interface,cmd);

    return cntr;
}


BuilderAlbum::BuilderAlbum() : Builder(){
    //ctor
}

Controller * BuilderAlbum::criar() const{
    InterfaceAlbum * interface = new InterfaceAlbum("Albuns","\t0-sair\n\t1-cadastrar\n\t2-excluir\n\t3-pesquisar\n\t4-pesquisar fotos em album");
    cmd_album * cmd = new cmd_album();
    Controller * cntr = new ControllerAlbum(interface,cmd);

    return cntr;
}
